<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
 <%@taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
  </head>
  
  <body>
  	修改  <!-- 这个页面不能直接进.. 必须要先进入controller绑定以后再进来 -->
  <!-- modelAttribute 绑定的实体类的名称 -->
    <form:form  name="f1"    method="post" modelAttribute="user"  >
    		<form:input path="name" />  <form:errors path="name"></form:errors>  <br>
    		<form:input path="sex"/> <form:errors path="sex"></form:errors> <br>
    		<form:input path="age"/><form:errors path="age"></form:errors>  <br>
    		<button type="submit">提交</button>
    		
    		<form:select path="deptno" >
    			<form:options itemLabel="dname" itemValue="deptno" items="${depts}"/>
    		</form:select>
    		<br>
    		<form:radiobuttons path="deptno" items="${depts}" itemLabel="dname" itemValue="deptno" /><br>
			<form:checkboxes path="deptno" items="${depts}" itemLabel="dname" itemValue="deptno" />
    		<br>
    		
    </form:form>
  </body>
</html>
